import {API} from './config';
import CustomRequest from '@/utils/Request';

/* 
*  图书注销统计分页
*/
const cancellationPageList = async (params = {}) => {
  return CustomRequest({
    api: API.collectionCancellationPage,
    method: 'post',
    params
  })
}

/* 
* 图书注销统计导出
*/
const cancellationExport = async (params = {}) => {
  return CustomRequest({
    api: API.collectionCancellationExport,
    method: 'post',
    params
  })
}

/* 馆藏分类数据 */
const classification = async (params = {}) => {
  return CustomRequest({
    api: API.collectionClassification,
    method: 'post',
    params
  })
}

/* 馆藏分类数据导出 */
const classificationExport = async (params = {}) => {
  return CustomRequest({
    api: API.collectionClassificationExport,
    method: 'post',
    params
  })
}

/* 
*  资产统计分页
*/
const assetPageList = async (params = {}) => {
  return CustomRequest({
    api: API.collectionAssetPage,
    method: 'post',
    params
  })
}

/* 
*  资产数据统计
*/
const assetStatistic = async (params = {}) => {
  return CustomRequest({
    api: API.collectionAssetStatistic,
    method: 'post',
    params
  })
}

/* 
*  资产统计导出
*/
const assetExport = async (params = {}) => {
  return CustomRequest({
    api: API.collectionAssetExport,
    method: 'post',
    params
  })
}

/* 
* 总报表分页
*/
const summaryPageList = async (params = {}) => {
  return CustomRequest({
    api: API.collectionSummaryPage,
    method: 'post',
    params
  })
}

/* 
*  资产统计导出
*/
const summaryExport = async (params = {}) => {
  return CustomRequest({
    api: API.collectionSummaryExport,
    method: 'post',
    params
  })
}

export {
  cancellationPageList,
  cancellationExport,

  classification,
  classificationExport,

  assetPageList,
  assetStatistic,
  assetExport,

  summaryPageList,
  summaryExport
}